const path = require('path')
module.exports = {
  publicPath: './',
  lintOnSave: false,
  devServer: {
    host: '127.0.0.1',
    port: '8080',
    https: false,
    open: false,
    proxy: {
      // '/': {
      //   target: process.env.VUE_APP_BASE_URL,
      //   changeOrigin: true
      // },
      '/h': {
        target: 'http://10.231.82.255:8091',
        changeOrigin: true
      },
      '/dev': {
        target: process.env.VUE_APP_BASE_URL_DEV,
        changeOrigin: true,
        pathRewrite: {
          '^/dev': '' // 本身的接口地址没有 '/api' 这种通用前缀，所以要rewrite，如果本身有则去掉
        }

      }
    }
  }
}
